﻿#include "contact_person.h"

ContactPerson::ContactPerson()
{

}

ContactPerson::~ContactPerson()
{

}

string ContactPerson::toString()
{
    string str;

    str += "id = " + to_string(id) + " name = " + name + " sex = " + to_string(sex) +
            " age = " + to_string(age) + " phone = " + to_string(phone) + " address = " + address;

    return str;
}

int ContactPerson::getId() const
{
    return id;
}

void ContactPerson::setId(int value)
{
    id = value;
}

string ContactPerson::getName() const
{
    return name;
}

void ContactPerson::setName(const string &value)
{
    name = value;
}

int ContactPerson::getSex() const
{
    return sex;
}

void ContactPerson::setSex(int value)
{
    sex = value;
}

int ContactPerson::getAge() const
{
    return age;
}

void ContactPerson::setAge(int value)
{
    age = value;
}

int ContactPerson::getPhone() const
{
    return phone;
}

void ContactPerson::setPhone(int value)
{
    phone = value;
}

string ContactPerson::getAddress() const
{
    return address;
}

void ContactPerson::setAddress(const string &value)
{
    address = value;
}
